package com.heima.article.controller.v1;

import com.heima.apis.client.IArticleClient;
import com.heima.article.service.ApArticleService;
import com.heima.model.common.article.dto.ArticleDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: WDD
 * @Date: 2022/08/04/12:32
 * @Description:
 */
@RestController
public class ArticleClient implements IArticleClient {

    @Autowired
    private ApArticleService apArticleService;

    @Override
    public ResponseResult saveArticle(ArticleDto dto) {
        apArticleService.saveArticle(dto);
        return null;
    }
}
